<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
require './config/config.php';
$conettion = mysql_connect(DB_HOST . ":" . DB_PORT, DB_USER, DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME, $conettion);

$query = "SELECT * FROM pages";
$data = mysql_query($query, $conettion);
echo "<table border='2'>
<tr>
<th>PID</th>
<th>ID</th>
<th>Name</th>

<th>Username</th>
<th>phone</th>
<th>Likes</th>


</tr>";
while ($row = mysql_fetch_assoc($data)) { {
        echo "<tr>";
        echo "<td>" . $row['pid'] . "</td>";
        echo "<td>" . $row['id'] . "</td>";
        echo "<td>" . $row['name'] . "</td>";

        echo "<td>" . $row['username'] . "</td>";
        echo "<td>" . $row['phone'] . "</td>";
        echo "<td>" . $row['likes'] . "</td>";



        echo "</tr>";
    }
}
echo "</table>";
?>
